package com.demo.gulimall.auth.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.io.Serializable;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 会员收货地址
 *
 * @author Chen Yuan
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("ums_member_receive_address")
public class MemberReceiveAddress implements Serializable {
	/** id */
	@TableId(type = IdType.ID_WORKER) // 老版本
    //@TableId(type = IdType.ASSIGN_ID) // 新版本
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`id`")
	private Long id;

	/** member_id */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`member_id`")
	private Long memberId;

	/** 收货人姓名 */
	@TableField(value = "`name`")
	private String name;

	/** 电话 */
	@TableField(value = "`phone`")
	private String phone;

	/** 邮政编码 */
	@TableField(value = "`post_code`")
	private String postCode;

	/** 省份/直辖市 */
	@TableField(value = "`province`")
	private String province;

	/** 城市 */
	@TableField(value = "`city`")
	private String city;

	/** 区 */
	@TableField(value = "`region`")
	private String region;

	/** 详细地址(街道) */
	@TableField(value = "`detail_address`")
	private String detailAddress;

	/** 省市区代码 */
	@TableField(value = "`areacode`")
	private String areacode;

	/** 是否默认 */
	@TableField(value = "`default_status`")
	private Byte defaultStatus;

}
